package edu.zut.cs.software.sms.goodsshelf.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.module.goodsShelf.domain.GoodsShelf;
import edu.zut.cs.software.module.goodsShelf.service.GoodsShelfManager;
import edu.zut.cs.software.teach.Base.web.spring.controller.GenericController;

@Controller
@RequestMapping("/goodsshelf")
public class GoodsShelfController extends GenericController<GoodsShelf, Long, GoodsShelfManager> {

	GoodsShelfManager goodsshelfManager;
	
	@Autowired
	public void setShelfManager(GoodsShelfManager goodsshelfManager) {
		this.goodsshelfManager = goodsshelfManager;
		this.manager = this.goodsshelfManager;
	}

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
        return "/goodsshelf/index";
    }
}
